obj-m += sys_info.o
ARCH=arm64
CROSS_COMPILE=aarch64-target-linux-gnu-
KERNEL_PATH=/opt/RTOS/208.9.0/arm64le_5.10_ek_preempt_pro/sdk/usr/src/kernel/
MODULE_MAKE=${PWD}
MACRO=ARM64_HI1711_ENABLED
KBUILD_CFLAGS += -D${MACRO}
$(info ${KBUILD_CFLAGS})
all:
	make ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C ${KERNEL_PATH} M=${MODULE_MAKE} modules

clean:
	make ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C ${KERNEL_PATH} M=${MODULE_MAKE} clean